package com.example.demo.Service.imp;

import com.example.demo.Controller.vo.shangpin;
import com.example.demo.Service.TProductService;
import com.example.demo.entity.TProduct;
import com.example.demo.mappers.TProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TProductServiceimp implements TProductService {
    private TProductMapper tp;
@Autowired
    public void setTp(TProductMapper tp) {
        this.tp = tp;
    }


    @Override
    public List<TProduct> list(shangpin shang) {
        return tp.list(shang);
    }

    @Override
    public List<TProduct> chaxun(Integer... id) {
        return tp.cha(id);
    }


}
